package net.xuhf.controller;

import cn.dev33.satoken.annotation.SaIgnore;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/news")
public class NewsController {

    @GetMapping("/list")
    public String index() {
        return "index";
    }

    @GetMapping("/info")
    @SaIgnore
    public String info() {
        return "info";
    }
}
